package com.threeonemeeting.listcache;

import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.threeonemeeting.R;

public class MeetingDataDocCache {

	private View baseView;
	private int meetingId;
	private ImageView meetingDataFileImageView;

	private TextView meetingDataFileTitleTextView;
	private TextView meetingDataFileTimeTextView;
	private TextView meetingDataFileSizeTextView;

	public MeetingDataDocCache(View baseView, int meetingId) {
		this.baseView = baseView;
		this.meetingId = meetingId;
	}

	public int getMeetingId() {
		return this.meetingId;
	}

	public ImageView getMeetingImageView() {
		if (meetingDataFileImageView == null) {
			meetingDataFileImageView = (ImageView) baseView
					.findViewById(R.id.meeting_data_file_image);
		}
		return meetingDataFileImageView;
	}

	public TextView getMeetingFileTitleTextView() {
		if (meetingDataFileTitleTextView == null) {
			meetingDataFileTitleTextView = (TextView) baseView
					.findViewById(R.id.meeting_data_file_title);
		}
		return meetingDataFileTitleTextView;
	}

	public TextView getMeetingFileTimeTextView() {
		if (meetingDataFileTimeTextView == null) {
			meetingDataFileTimeTextView = (TextView) baseView
					.findViewById(R.id.meeting_data_file_time);
		}
		return meetingDataFileTimeTextView;
	}
	
	public TextView getMeetingFileSizeTextView() {
		if (meetingDataFileSizeTextView == null) {
			meetingDataFileSizeTextView = (TextView) baseView
					.findViewById(R.id.meeting_data_file_size);
		}
		return meetingDataFileSizeTextView;
	}
}
